package org.zcl.entity.response;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 用户签证官
 *
 * @author zhuchenglin
 * @date 2022/09/06 14:36
 */
@Data
@Api(value = "UserVO", tags = "添加用户参数VO")
public class UserVO {

    @ApiModelProperty(value = "id", required = true)
    @NotNull(message = "id不能为空！")
    private Long id;

    @ApiModelProperty(value = "姓名", required = true)
    @NotBlank(message = "姓名不能为空！")
    private String name;

    @ApiModelProperty(value = "年龄", required = true)
    @Min(value = 0, message = "年龄必须为大于0的整数！")
    private Integer age;
}
